package com.woniuxy.pxxt.controller;

import com.woniuxy.pxxt.common.result.Result;
import com.woniuxy.pxxt.service.UserTrainCourseService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.*;

/**
 * @author: 陈子遥  <br/>
 * Date: 2022/3/17:17:14  <br/>
 * Description:
 */
@Api(value = "根据用户id返回培训id，用户id，课程id，课程名称，培训名称，用户名称和培训进度")
@RestController
@RequestMapping("/userTrainCourse")
public class UserTrainCourseController {
    @Autowired
    UserTrainCourseService userTrainCourseService;

    @ApiOperation(value = "根据用户id查看培训下的课程进度")
    @GetMapping("/findUserTrainCourse/{id}")
    public Result findUserTrainCourse(@PathVariable Integer id){
        return userTrainCourseService.findUserTrainCourse(id);
    }
}
